module.exports = app => {
  
  const store = {};
  app.sessionStore = {
    async get(key){
      // console.log("--store--", store)
      return store[key];
    },
    async set(key, value, maxAge){
      store[key] = value;
    },
    async destroy(key){
      store[key] = null;
    }
  };
  app.config.coreMiddleware.push('interfaceLimit');
  app.config.coreMiddleware.push('allowHosts');
  app.config.coreMiddleware.push('notFound');
  app.config.coreMiddleware.push('auth');
  // app.config.coreMiddleware.push('interfaceCache');
}